#include "widget.h"
#include "ui_widget.h"
#include <QPushButton>

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);

//    this->setWindowTitle("这是窗口标题");

//    QPushButton* button = new QPushButton(this);
//    button->setText("按钮");
//    button->setWindowTitle("通过按钮设置窗口标题");


    //设置图标
    //QIcon icon("C:/Users/tangt/Desktop/dongman.jpg");
    QIcon icon(":/dongman.jpg");
    this->setWindowIcon(icon);
}

Widget::~Widget()
{
    delete ui;
}

